<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>分词词汇处理(升序)</title>
<script language="javascript" src="script/ajax.js"></script>
<link type="text/css" rel="stylesheet" href="styles/css.css"/>
<script language="javascript">

//绑定load事件
if (window.addEventListener) {//for IE
	window.addEventListener('load', init, false);
} else {//for Firefox
	window.attachEvent('onload', init);
}
var oSave;

function init() {
	oSave = 9;
	_submit();
}
		
function _submit(){
    _url = "editSegmentWordDeal.php"; //响应的链接
    _IdOfDiv = "sendit"; //显示的div的id
    _data = "orderBy=asc&keyword=" + encodeURI(document.getElementById("keyword").innerHTML) 
			+ "&save=" + oSave;//组装数据
    submit_form();
}

function fun_saveYes() {
	oSave = 1;
	_submit();
}

function fun_saveNo() {
	oSave = 0;
	_submit();
}

function fun_lastWord() {
	oSave = 8;
	document.getElementById("keyword").innerHTML = document.getElementById("lastword").innerHTML
	_submit();
}
</script>
</head>
<body>
<div id="out_div">
<div id="head_div">分词处理系统(升序)</div>
<div id="sendit">
<table border="1" align="center" width="100%">
  <tr>
    <td width="86">Keyword</td>
    <td ><div id="keyword"></div></td>
  </tr>
  <tr>
    <td>Count </td>
    <td><div id="count"></div></td>
  </tr>
  <tr>
    <td>Class</td>
    <td><div id="class"></div></td>
  </tr>
  <tr>
    <td>Save it?</td>
    <td><div id="saveBox">
      <input type="button" id="saveYes" value="Yes"/>
      &nbsp;&nbsp;&nbsp;&nbsp;
      <input type="button" id="saveNo" value="No"/>
      </div>
    </td>
  </tr>
  <tr>
  <td>Last Word</td>
  <td><div id="lastword">&nbsp;</div></td>
  </tr>
  
  <tr>
  <td>Left Num</td>
  <td><div id="left">left</div></td>
  </tr>
</table>
</div>
</div>
</body>
</html>
